package BLC

import (
	"bytes"
	"log"
	"encoding/binary"
)

func IntToHex(num int64)[]byte{
	buff:=new(bytes.Buffer)//设计一个缓冲区
	//将大整数转化为字节数组
	err:=binary.Write(buff,binary.BigEndian,num)
	if err!=nil{
		log.Panic(err)
	}
	return buff.Bytes()
}
